
@Slf4j
@RestController
@Api(tags = "买家端，购物车接口")
@RequestMapping("/buyer/trade/carts")
public class ${classInfo.className}Controller {
}

其他
@PreventDuplicateSubmissions



通用请求参数
@GetMapping("/select/coupon")
@GetMapping(value = "/type/{type}")
@PostMapping(value = "/sku/checked", produces = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "/create/trade", consumes = "application/json", produces = "application/json")

命名规则



命名方式
@Api(tags = "买家端, XXXX接口")
@RequestMapping("/buyer/....")

@Api(tags = "管理端, XXXX接口")
@RequestMapping("/manager/....")

@Api(tags = "店铺端, XXXX接口")
@RequestMapping("/store/....")

@Api(tags = "通用端, XXXX接口")
@RequestMapping("/common/....")

@Api(tags = "XXXX外部接口")
@RequestMapping("/....Ext")

@Api(tags = "前台XXXX接口")
@RequestMapping("/front/....")

返回数据
return ResultUtil.success();
return ResultUtil.data(this.cartService.createTrade(tradeParams));
return ResultUtil.error(ResultCode.ERROR);